package com.easyaop.test.core.around;

import java.util.function.Function;
import java.util.function.Supplier;

public class Around {
    static Object around(Object the, Object[] args, Function proxy) {
        System.out.println("before");
        Object result = proxy.apply(args);
        System.out.println("after");
        return result;
    }

    static Object around(Object the, Object[] args, Supplier proxy) {
        System.out.println("before");
        return proxy.get();
    }
}
